﻿using OpenWaves.ActivityFeed.NHibernate;

namespace OpenWaves.ActivityFeed.Web.NHibernate
{
    public static class ResolverExtensions
    {
         public static void SetDefaultActivityFeedWebForNHibernateImplementations(this BasicResolver resolver)
         {
             resolver.Register<IActivityFeedBuilderFactory>(new NhibernateActivityFeedBuilderFactory());
             resolver.Register<INHibernateSessionProvider>(new NHibernateSessionPerRequestProvider());
             resolver.Register<IActivityFeedService>(new NHibernateActivityFeedService());
         }
    }
}